<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>trngpsx: xtrngpsx.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">trngpsx
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xtrngpsx_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xtrngpsx.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga88c45d9fcea045da2a83fac3a839a976"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga88c45d9fcea045da2a83fac3a839a976">XTRNGPSX_RESEED_TIMEOUT</a>&#160;&#160;&#160;1500000U</td></tr>
<tr class="memdesc:ga88c45d9fcea045da2a83fac3a839a976"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reseed timeout in micro-seconds.  <a href="group___overview.html#ga88c45d9fcea045da2a83fac3a839a976">More...</a><br/></td></tr>
<tr class="separator:ga88c45d9fcea045da2a83fac3a839a976"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf6620c2ebd55840666179003a283acea"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gaf6620c2ebd55840666179003a283acea">XTRNGPSX_GENERATE_TIMEOUT</a>&#160;&#160;&#160;1500000U</td></tr>
<tr class="memdesc:gaf6620c2ebd55840666179003a283acea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate timeout in micro-seconds.  <a href="group___overview.html#gaf6620c2ebd55840666179003a283acea">More...</a><br/></td></tr>
<tr class="separator:gaf6620c2ebd55840666179003a283acea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9ef3e8b4f65633065b5de8de9f7429b4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga9ef3e8b4f65633065b5de8de9f7429b4">XTRNGPSX_WORD_LEN_IN_BYTES</a>&#160;&#160;&#160;4U</td></tr>
<tr class="memdesc:ga9ef3e8b4f65633065b5de8de9f7429b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Word length in bytes.  <a href="group___overview.html#ga9ef3e8b4f65633065b5de8de9f7429b4">More...</a><br/></td></tr>
<tr class="separator:ga9ef3e8b4f65633065b5de8de9f7429b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6192793c73f6cbf4a3635835507d28c4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga6192793c73f6cbf4a3635835507d28c4">XTRNGPSX_BYTE_LEN_IN_BITS</a>&#160;&#160;&#160;8U</td></tr>
<tr class="memdesc:ga6192793c73f6cbf4a3635835507d28c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Byte length in bits.  <a href="group___overview.html#ga6192793c73f6cbf4a3635835507d28c4">More...</a><br/></td></tr>
<tr class="separator:ga6192793c73f6cbf4a3635835507d28c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaebafd9bdd9fd17cc76f7d644f2661b4c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gaebafd9bdd9fd17cc76f7d644f2661b4c">XTRNGPSX_BLOCK_LEN_IN_BYTES</a>&#160;&#160;&#160;16U</td></tr>
<tr class="memdesc:gaebafd9bdd9fd17cc76f7d644f2661b4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">TRNG block length length in bytes.  <a href="group___overview.html#gaebafd9bdd9fd17cc76f7d644f2661b4c">More...</a><br/></td></tr>
<tr class="separator:gaebafd9bdd9fd17cc76f7d644f2661b4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab156d67eb4a798f294dc6ddebe8ab53b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gab156d67eb4a798f294dc6ddebe8ab53b">XTRNGPSX_MIN_SEEDLIFE</a>&#160;&#160;&#160;1U</td></tr>
<tr class="memdesc:gab156d67eb4a798f294dc6ddebe8ab53b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minimum seed life.  <a href="group___overview.html#gab156d67eb4a798f294dc6ddebe8ab53b">More...</a><br/></td></tr>
<tr class="separator:gab156d67eb4a798f294dc6ddebe8ab53b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga369bd60024827c90f5863cb1e82baa59"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga369bd60024827c90f5863cb1e82baa59">XTRNGPSX_MAX_SEEDLIFE</a>&#160;&#160;&#160;0x80000</td></tr>
<tr class="memdesc:ga369bd60024827c90f5863cb1e82baa59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum seed life 2^19.  <a href="group___overview.html#ga369bd60024827c90f5863cb1e82baa59">More...</a><br/></td></tr>
<tr class="separator:ga369bd60024827c90f5863cb1e82baa59"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga613878c668ba11cca5bfffd493caccba"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga613878c668ba11cca5bfffd493caccba">XTRNGPSX_SEC_STRENGTH_IN_BURSTS</a>&#160;&#160;&#160;2U</td></tr>
<tr class="memdesc:ga613878c668ba11cca5bfffd493caccba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Security strength in 128-bit bursts.  <a href="group___overview.html#ga613878c668ba11cca5bfffd493caccba">More...</a><br/></td></tr>
<tr class="separator:ga613878c668ba11cca5bfffd493caccba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf7f5bd1585dc56e50d4f0c5bef8db42a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gaf7f5bd1585dc56e50d4f0c5bef8db42a">XTRNGPSX_BURST_SIZE_IN_WORDS</a>&#160;&#160;&#160;4U</td></tr>
<tr class="memdesc:gaf7f5bd1585dc56e50d4f0c5bef8db42a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Burst size in words.  <a href="group___overview.html#gaf7f5bd1585dc56e50d4f0c5bef8db42a">More...</a><br/></td></tr>
<tr class="separator:gaf7f5bd1585dc56e50d4f0c5bef8db42a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0cd1496d0e68ec8adf6f020b4ee07639"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga0cd1496d0e68ec8adf6f020b4ee07639">XTRNGPSX_DF_MIN_LENGTH</a>&#160;&#160;&#160;2U</td></tr>
<tr class="memdesc:ga0cd1496d0e68ec8adf6f020b4ee07639"><td class="mdescLeft">&#160;</td><td class="mdescRight">Minimum DF input length.  <a href="group___overview.html#ga0cd1496d0e68ec8adf6f020b4ee07639">More...</a><br/></td></tr>
<tr class="separator:ga0cd1496d0e68ec8adf6f020b4ee07639"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacdb1fbfdbaf6706a613cabfe35e4b23d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gacdb1fbfdbaf6706a613cabfe35e4b23d">XTRNGPSX_DF_MAX_LENGTH</a>&#160;&#160;&#160;0x1FU</td></tr>
<tr class="memdesc:gacdb1fbfdbaf6706a613cabfe35e4b23d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum DF input length.  <a href="group___overview.html#gacdb1fbfdbaf6706a613cabfe35e4b23d">More...</a><br/></td></tr>
<tr class="separator:gacdb1fbfdbaf6706a613cabfe35e4b23d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga30f3bd42732148271382271d13f7d669"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga30f3bd42732148271382271d13f7d669">XTRNGPSX_DF_NUM_OF_BYTES_BEFORE_MIN_700CLKS_WAIT</a>&#160;&#160;&#160;8U</td></tr>
<tr class="memdesc:ga30f3bd42732148271382271d13f7d669"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of bytes to be written before wait.  <a href="group___overview.html#ga30f3bd42732148271382271d13f7d669">More...</a><br/></td></tr>
<tr class="separator:ga30f3bd42732148271382271d13f7d669"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0644d7e73c8645812333618387619c84"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga0644d7e73c8645812333618387619c84">XTRNGPSX_ADAPTPROPTESTCUTOFF_MAX_VAL</a>&#160;&#160;&#160;0x3FFU</td></tr>
<tr class="memdesc:ga0644d7e73c8645812333618387619c84"><td class="mdescLeft">&#160;</td><td class="mdescRight">maximum adaptprpptest cutoff value  <a href="group___overview.html#ga0644d7e73c8645812333618387619c84">More...</a><br/></td></tr>
<tr class="separator:ga0644d7e73c8645812333618387619c84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf4e638c7db3dcb2f105857b8d69880e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gacf4e638c7db3dcb2f105857b8d69880e">XTRNGPSX_REPCOUNTTESTCUTOFF_MAX_VAL</a>&#160;&#160;&#160;0x1FFU</td></tr>
<tr class="memdesc:gacf4e638c7db3dcb2f105857b8d69880e"><td class="mdescLeft">&#160;</td><td class="mdescRight">maximum repcounttest cutoff value  <a href="group___overview.html#gacf4e638c7db3dcb2f105857b8d69880e">More...</a><br/></td></tr>
<tr class="separator:gacf4e638c7db3dcb2f105857b8d69880e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6b5653250d7dad396a064b0ba6fa5c34"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga6b5653250d7dad396a064b0ba6fa5c34">XTrngpsx_CfgInitialize</a> (XTrngpsx_Instance *InstancePtr, const XTrngpsx_Config *CfgPtr, UINTPTR EffectiveAddr)</td></tr>
<tr class="memdesc:ga6b5653250d7dad396a064b0ba6fa5c34"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function initializes the TRNGPSV instance/driver.  <a href="group___overview.html#ga6b5653250d7dad396a064b0ba6fa5c34">More...</a><br/></td></tr>
<tr class="separator:ga6b5653250d7dad396a064b0ba6fa5c34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68da9a334ae46bbed63a36ae6a273745"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga68da9a334ae46bbed63a36ae6a273745">XTrngpsx_Instantiate</a> (XTrngpsx_Instance *InstancePtr, const u8 *Seed, u32 SeedLength, const u8 *PersStr, const XTrngpsx_UserConfig *UserCfg)</td></tr>
<tr class="memdesc:ga68da9a334ae46bbed63a36ae6a273745"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function instantiates the TRNG instance with user configure values.  <a href="group___overview.html#ga68da9a334ae46bbed63a36ae6a273745">More...</a><br/></td></tr>
<tr class="separator:ga68da9a334ae46bbed63a36ae6a273745"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga27d626b65acc3b1e97573f4c2d2ee8e1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga27d626b65acc3b1e97573f4c2d2ee8e1">XTrngpsx_Reseed</a> (XTrngpsx_Instance *InstancePtr, const u8 *Seed, u8 DLen)</td></tr>
<tr class="memdesc:ga27d626b65acc3b1e97573f4c2d2ee8e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function triggers and reseeds the DRBG module.  <a href="group___overview.html#ga27d626b65acc3b1e97573f4c2d2ee8e1">More...</a><br/></td></tr>
<tr class="separator:ga27d626b65acc3b1e97573f4c2d2ee8e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa94d3f0522f2c56e9a4b6abe4193db2e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#gaa94d3f0522f2c56e9a4b6abe4193db2e">XTrngpsx_Generate</a> (XTrngpsx_Instance *InstancePtr, u8 *RandBuf, u32 RandBufSize, u8 PredResistance)</td></tr>
<tr class="memdesc:gaa94d3f0522f2c56e9a4b6abe4193db2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function generates and collects random data in to a buffer.  <a href="group___overview.html#gaa94d3f0522f2c56e9a4b6abe4193db2e">More...</a><br/></td></tr>
<tr class="separator:gaa94d3f0522f2c56e9a4b6abe4193db2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga15ee0bc83b064ce7910792c014c589b1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___overview.html#ga15ee0bc83b064ce7910792c014c589b1">XTrngpsx_Uninstantiate</a> (XTrngpsx_Instance *InstancePtr)</td></tr>
<tr class="memdesc:ga15ee0bc83b064ce7910792c014c589b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function uninstantiates the TRNG instance.  <a href="group___overview.html#ga15ee0bc83b064ce7910792c014c589b1">More...</a><br/></td></tr>
<tr class="separator:ga15ee0bc83b064ce7910792c014c589b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
